package org.example.service;

import com.baomidou.mybatisplus.extension.service.IService;
import org.example.model.common.dtos.PageResponseDto;
import org.example.model.common.dtos.order.OrderBasicDto;
import org.example.model.common.vos.order.SearchOrderVo;
import org.example.model.order.OrderBasic;

import java.util.List;

/**
 * 订单管理
 */
public interface OrderBasicService extends IService<OrderBasic> {

    /**
     * 添加订单
     */
    Boolean InsertOrderBasic(OrderBasic orderBasic);

    /**
     * 根据条件(订单号模糊查询，订单状态精确查询,下单时间范围查询)分页查询
     */
    PageResponseDto<List<OrderBasicDto>> SelectOrderPageByConditions(SearchOrderVo searchOrderVo, int pageIndex, int pageSize);
    /**
     * 根据id修改订单状态
     */
    Boolean UpdateOrderBasicById(OrderBasic orderBasic);

    /**
     * 根据id获取订单详情
     */
    public OrderBasicDto SelectOrderById(int id);
}
